<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width,initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Vue示例代码3</title>
</head>
<body>
    <div id="app">
<!--        json数据(变量)-->
        <h1>{{ msg }}</h1>
<!--        数字-->
        <h1>{{ 10 }}</h1>
<!--        字符串-->
        <h1>{{ "string" }}</h1>
<!--        表达式-->
        <h1>{{ 12+13 }}</h1>
        <h1>{{ "Hello"+name }}</h1>
        <h1>{{ 2>3? "true":"false" }}</h1>
    </div>
    <script src="https://cdn.jsdelivr.net/npm/vue@2/dist/vue.js"></script>
    <script>
        var vm=new Vue({
            el: "#app",
            data:{
                msg:"hello",
                name:"三毛"
            }
        });
    </script>
</body>
</html>